package com.aacar.dao.impl;

import com.aacar.dao.OrderPayDao;
import com.aacar.dao.UserIntegralPayDao;
import com.aacar.dao.base.CommonBaseDao;
import com.aacar.entity.OrderPay;
import com.aacar.entity.SendOrder;
import com.aacar.entity.UserIntegralPay;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository("userIntegralPayDao")
public class UserIntegralPayDaoImpl extends CommonBaseDao<UserIntegralPay, String> implements UserIntegralPayDao {

	private static final String nameSpace = "com.aacar.dao.UserIntegralPayDao.";


	@Override
	public int save(UserIntegralPay userIntegralPay) {
		return saveObject(nameSpace.concat("save"), userIntegralPay);
	}

	@Override
	public int update(UserIntegralPay userIntegralPay) {
		return super.getSqlSession().update(nameSpace.concat("update"), userIntegralPay);

	}

	@Override
	public UserIntegralPay getUserIntegralPay(String uipOrderNo) {
		return super.getSqlSession().selectOne(nameSpace.concat("getUserIntegralPay"), uipOrderNo);

	}

	@Override
	public int saveRecods(Map map) {
		return super.getSqlSession().insert(nameSpace.concat("saveRecods"), map);
	}
}
